import { createApp } from 'vue'
// @ts-ignore
import ProLayout from '@ant-design-vue/pro-layout';
import { router } from '@/router/index';
import { store } from '@/store/index';
import { getTokenFromCookie } from '@/utils/cookie-util';
import './style.css';
// import { useUserStore } from '@/store/modules/user';
import 'ant-design-vue/dist/antd.less'
import '@ant-design-vue/pro-layout/dist/style.less'
import './style.css'
import App from './App.vue'
function initVue() {
    let vueApp = createApp(App);
    let app = vueApp.use(router).use(store).use(ProLayout);
    app.mount('#app');
}
let token = getTokenFromCookie();
if (!token) {
  
  initVue();
}else{
  initVue();
}